<div class="wp-20" ui-view="container">
    <div ng-if="!noPermission">
        <div class="head_title">
            <span class="tit-color">用户管理</span>
        </div>
        <div class="searchWapper white-background">
            <!--<div class="form-group searchLump search-condition">-->
            <!--<div class="searchTitle">搜索：</div>-->
            <!--&lt;!&ndash;            <div class="col-lg-3">-->
            <!--<div class="input-group input-group-sm" style="margin-left: -10px;">-->
            <!--<input type="text" class="form-control input-search" name="keyword" ng-model="search.fullName"ui-event="{ keyup : 'keyup($event,search.fullName)' }"-->
            <!--placeholder="搜索">-->
            <!--<span class="btn-search">-->
            <!--<i class="glyphicon glyphicon-search" ng-click="categoryChange()"></i>-->
            <!--</span>-->
            <!--</div>-->
            <!--</div>&ndash;&gt;-->
            <!--<div class="col-lg-4">-->
            <!--<div class="input-group input-group-sm search-input">-->
            <!--<input type="text" style="border-radius: inherit;margin-left: 5px" class="input width-150" name="keyword" ng-model="search.fullName" ui-event="{ keyup : 'keyup($event,search.fullName)' }"-->
            <!--placeholder="搜索">-->
            <!--<input type="button" class="btn btn-primary" value="搜索" style="margin-top: -4px;margin-left: 20px" ng-click="categoryChange()">-->
            <!--</div>-->
            <!--</div>-->
            <!--</div>-->

            <div class="form-group searchLump">
                <div class="searchTitle" style="line-height: 30px">筛选：</div>
                <div class="search-select">
                    <select ng-model="search.departmentId"
                            ng-options="department.departmentId  as department.departmentName for department in departments"
                            ng-change="departmentChange(search.departmentId)" style="margin:0px 0px 10px 20px"></select>

                    <select ng-model="search.secDepartmentId"
                            ng-options="department.departmentId  as department.departmentName for department in secDepartments"
                            ng-change="secDepartmentChange(search.secDepartmentId)" style="margin:0px 20px"></select>


                    <select ng-model="search.roleId" ng-options="role.roleId  as role.roleName for role in roleList"
                            ng-change="categoryChange()"></select>

                </div>

            </div>
            <div class="form-group searchLump">
                <div class="searchTitle" style="line-height: 30px">操作：</div>
                <div class="search-select">
                    <button class="btn btn-primary" style="margin-left: 20px" ui-sref="main.adminUsers.manage">新建
                    </button>
                </div>

            </div>
        </div>

        <div class="white-background" style="margin:15px  0px">

            <table class="table table-bordered table-hover table-page">

                <thead>
                <tr>

                    <th>用户_ID</th>
                    <th>用户名(邮箱)</th>
                    <th>手机</th>
                    <th>姓名</th>
                    <th>部门</th>
                    <th>角色</th>

                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="admin in adminList">

                    <td>
                        {{admin.adminId}}
                    </td>
                    <td>
                       {{admin.email}}
                    </td>
                    <td>
                        {{admin.phoneNum}}
                    </td>
                    <td>
                        {{admin.fullName}}
                    </td>
                    <!--<td>
                        {{table[admin.departmentId]}}
                    </td>-->
                    <td>
                        {{admin.departmentName}}
                    </td>
                    <td>
                        {{admin.roleName}}
                    </td>

                    <td>
                        <a ui-sref="main.adminUsers.manage({adminId:admin.adminId})" class="time-out">编辑</a>
                        <a ng-click="delete(admin)" class="time-out">删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

        <div class="panel-footer paging">
            <s-pagination conf="paginationConf"></s-pagination>
        </div>
    </div>
    <div ng-if="noPermission" ng-include="'templates/no-permission.html'"></div>


    <!--<a ui-sref="campaigns.detail({campaignsId:1})"  ui-sref-opts="{inherit:false}">aaaaa</a>-->
</div>
